package com.demo.supplier.controller;

import com.demo.feign.SuppFeign;
import com.demo.supplier.PearProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SupplierController implements SuppFeign {

    @Autowired
    private PearProperties pearProperties;

    @RequestMapping("/findSupp")
    public String findSupp() {
        return "I am Supplier" + pearProperties.getName()+ pearProperties.getAge();
    }
}
